package com.abu.api;

import com.abu.pojo.Course;
import com.abu.pojo.Teacher;
import com.abu.utils.Resp;
import com.abu.vo.CourseWebVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface EduApi {
    @GetMapping("eduservice/course/index/courses")
    List<Course> queryIndexCourses();

    @GetMapping("eduservice/teacher/index/teachers")
    List<Teacher> queryIndexTeachers();

    @GetMapping("eduservice/coursefront/getFrontCourseInfo/{courseId}")
    Resp getFrontCourseInfo(@PathVariable("courseId") String courseId);

    @GetMapping("eduservice/teacher/getTeacher/{id}")
    Resp getTeacher(@PathVariable("id") String id);

    @GetMapping("/eduservice/coursefront/getFrontCourseDetails/{courseId}")
    CourseWebVo queryCourseWebVo(@PathVariable("courseId") String courseId);
}
